package com.yf.stack.returnaddress;

public class ReturnAddressTest {
    public byte testReturnByte() {
        return 0;
    }

    public char testReturnChar() {
        return 'a';
    }

    public short testReturnShort() {
        return 32767;
    }

    public int testReturnInt() {
        return Integer.MAX_VALUE;
    }

    public long testReturnLong() {
        return Long.MAX_VALUE;
    }

    public float testReturnFloat() {
        return Float.MAX_VALUE;
    }

    public double testReturnDouble() {
        return Double.MAX_VALUE;
    }

    public String testReturnString() {
        return "abc";
    }

    public void testVoid() {}

    static {
        int i = 10;
    }

    public void testExceptionTable() {
        try {
            int j = 10 / 0;
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void testMethodInvoke() {
        testVoid();
    }
}
